<!DOCTYPE html>
<html>
<head>
    <title>充值 | 消费记录</title>
<include file="Public/head"/>
	<link href="__CSS__/cashier.css" rel="stylesheet">
	<link href="__CSS__/sweetalert.css" rel="stylesheet">
	<link href="__CSS__/dataTables.bootstrap.css" rel="stylesheet">
	<link href="__CSS__/footable.core.css" rel="stylesheet">
	<style>
		.ibox-title h5 {
  			margin: 10px 0 0px;
		}
		select.input-sm {
  			height: 35px;
  			line-height: 35px;
		}
		.float-e-margins .btn-info{
			margin-bottom:0px;
		}
		.fa-paste{
			margin-right:7px;
			padding: 0px;
		}
		.dz-preview{
			display:none;
		}
		.ibox-title ul{ list-style: outside none none !important; margin: 0; padding: 0;}
		.ibox-title li:nth-child(1) { float: left;width: 30%; }
		.ibox-title li:nth-child(2) { float: left;width: 32%; }
		.ibox-title li:nth-child(3){width: 35%; }
		#commonpage {float: right;margin-bottom: 10px;}
		#table-list-body .btn-st{background-color: #337ab7;border-color: #2e6da4;cursor:auto;}
		#oderinfo{overflow-y: scroll;}
		.float-e-margins .ibox-content{border-style:none;}
		.nav-tabs > li > a:hover,
		.nav-tabs > li > a:focus {
		 background-color: #FFF;
		}
		.nav-tabs li.active  a {border-color:#dddddd #dddddd #fff}
		.nav-tabs li.active  a:hover,.nav-tabs li.active a:focus {border-color:#dddddd #dddddd #fff;background-color:#FFF;}
	</style>
	<script src="__JS__/footable.all2.min.js"></script>
	<link href="__CSS__/datepicker3.css" rel="stylesheet">
	<script src="__JS__/bootstrap-datepicker.js"></script>
</head>

<body>
    <div id="wrapper">
<include file="Public/leftmenu"/>
        <div id="page-wrapper" class="gray-bg">
    <include file="Public/top"/>
            <div class="row wrapper border-bottom white-bg page-heading">
                <div class="col-lg-10">
                    <h2>统计记录</h2>
                    <ol class="breadcrumb">
                        <li>
                            <a>Member</a>
                        </li>
 
                        <li class="active">
                            <strong>记录列表</strong>
                        </li>
                    </ol>
                </div>
                <div class="col-lg-2">

                </div>
            </div>
        <div class="wrapper wrapper-content animated fadeInRight">
            <div class="row">
            	<div class="col-lg-12" style="">
            	    <div class="ibox float-e-margins">

<div class="ibox-content"> 
   <nav class="ui-nav clearfix"> 

   </nav> 
    <!-- 充值记录 开始 --> 
<eq name="met" value="1">
   <div class="app__content js-app-main page-cashier">
    <div>
      <!-- 实时交易信息展示区域 --> 
      <div class="cashier-realtime"> 
       <div class="realtime-title-block clearfix"> 
  
				<form action="?s=Member/recharge_record" id="search" method="post">
					<!-- <input type="text" style="width:15%;float:left;height:29px;" value="{$mobile}" name="mobile" class="input-sm form-control" placeholder="手机号">-->
					 						<div id="ymdatepicker" class="input-daterange input-group">
																			<input type="text" value="{$data[starttime]}" name="starttime" class="input-sm form-control" id="ymstart" placeholder="有效开始时间">
																			<span class="input-group-addon"> T O </span>
																			<input type="text" value="{$data[endtime]}" name="endtime" class="input-sm form-control" id="ymend" placeholder="有效结束时间">
																		</div>
				 </form>
						<a href="?s=Member/daochu_record&mobile={$mobile}&met={$met}" style="float:left;margin-left:20px;height:28px;" class="btn btn-primary js-create-qrcode">导出统计数据</a>



       </div> 
      </div> 
      <div class="js-real-time-region realtime-list-box loading">
       <div class="widget-list">
        <div class="js-list-filter-region clearfix ui-box" style="position: relative;">
         <div class="widget-list-filter"></div>
        </div> 
        <div class="ui-box"> 
         <table class="ui-table ui-table-list" data-page-size="20" style="padding: 0px;"> 
          <thead class="js-list-header-region tableFloatingHeaderOriginal">
           <tr class="widget-list-header">
		    <th>编号</th>
            <th data-hide="phone">充值会员</th> 
            <th data-hide="phone">充值时间</th> 
            <th data-hide="phone">充值手机</th> 
            <th data-hide="phone">充值金额(元)</th>
			<th data-hide="phone">赠送金额(元)</th>
			<th data-hide="phone">赠送积分</th>
            <th>操作</th>
           </tr>
          </thead>
          <tbody class="js-list-body-region" id="table-list-body">
		<notempty name="list">
				<volist name="list" id="data">
					   <tr class="widget-list-item">
						<td>{$data.id}</td> 
						<td>{$data.name}</td> 
						<td>{$data.addtime|date='Y-m-d',###}</td> 
						<td>{$data.mobile}</td> 
						<td>{$data.money}</td> 
						<td>{$data.give}</td> 
						<td>{$data.score}</td>	
						<td> <button class="btn btn-sm btn-danger" onclick="delone(this,{$data.id});"><strong> 删 除 </strong></button></td>
					   </tr>
		   </volist>
   <else/>
		   <tr class="widget-list-item"><td colspan="7">暂无充值记录</td></tr>
				
								
						 </notempty>
          </tbody> 
         </table> 
         <div class="js-list-empty-region"></div> 
        </div> 
        <div class="js-list-footer-region ui-box">
         <div class="widget-list-footer"></div>
        </div> 
       </div>
      </div> 
     </div>
    </div>
	</eq>
    <!-- 充值记录 结束 --> 




   </div> 
  </div>    
            	</div>
				{$page}
            </div>
        </div>
<include file="Public/footer"/>
        </div>
    </div>

 <script>
/*****删除处理******/
function delone(dom,id){
   if(confirm('您确定要删除此项？')){
		$.ajax({
			url: "s=Member/delsum&id="+id,
			type: "POST",
			dataType: "json",
			data:{id:id},
			success: function(res){
				if(res.error){
					swal({
        				title: "删除成功",
        					text: '',
        					type: "success"
    					}, function () {
        					$(dom).parent().parent('tr').remove();
   						});

				}
			}
		});
   }
}
 </script>
</body>



</html>